package com.un.ebs.sys.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.metadata.DbField;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * (UserWxExt)表实体类
 *
 * @author liubo
 * @since 2020-12-22 18:26:20
 */
@Data
@Component
@TableName("v_user_wx_ext")
@SuppressWarnings("serial")
public class UserWxExt extends Model<UserWxExt> {


    @DbField(name = "id", length = 40, precision = 0)
    private String id;

    @DbField(name = "user_id", length = 40, precision = 0)
    private String userId;

    @DbField(name = "open_id", length = 40, precision = 0)
    private String openId;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @DbField(name = "user_name", length = 100, precision = 0)
    private String userName;

    @DbField(name = "name", length = 255, precision = 0)
    private String name;

    @DbField(name = "current_ent_name", length = 255, precision = 0)
    private String currentEntName;

    @DbField(name = "current_open_id", length = 100, precision = 0)
    private String currentOpenId;

    @DbField(name = "current_tenant_id", length = 40, precision = 0)
    private String currentTenantId;

    @DbField(name = "last_login_time", length = -1, precision = 0)
    private Date lastLoginTime;

    @DbField(name = "wx_app_id", length = 100, precision = 0)
    private String wxAppId;

    @DbField(name = "wx_app_secret", length = 100, precision = 0)
    private String wxAppSecret;

    @DbField(name = "ent_id", length = 40, precision = 0)
    private String entId;


}